﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace UCenter.PluginFramework
{
    [Serializable]
    public class ManagedPlugin : Iidentifier
    {
        [XmlElement]
        public string Key { get; set; }

        [XmlElement]
        public string Name { get; set; }

        [XmlElement]
        public string Version { get; set; }

        [XmlElement]
        public string Author { get; set; }

        [XmlElement]
        public string PublisherUrl { get; set; }

        [XmlElement]
        public bool Enabled { get; set; }

        [XmlElement(IsNullable = false)]
        public List<AssemblyPart> DeploymentParts { get; set; }

        [XmlElement(IsNullable = true)]
        public PlugInSettingCollection Settings { get; set; }
    }
}
